﻿@using SH = EMoney.IStock.Client.Framework.StringHelper;
@using EMoney.IStock.Client.Models.QQ;
@using EMoney.IStock.Client.Framework;
@using EMoney.IStock.Client.Business.QQ;
@{
    //我的订阅
    Layout = null;
    ViewBag.Title = "rank_myrss";
    RankBll rank_bll = new RankBll();    
    TradeBll trade_bll = new TradeBll();    
    EmRss emrss = (EmRss)ViewBag.EmRss;
    string[] qq = null;
    if (emrss != null)
    {
        qq = emrss.data;
    }
}

<table  width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <th><span>高手名称</span></th>
        <th><span>当前排名</span></th>
        <th><span>收益率</span></th>
        <th><span>操作</span></th>
    </tr>
    @{
        if(qq !=null)
        {
            foreach (string item in qq)
            {    
                //获取用户资产信息    
                Assets assets = trade_bll.GetAssets(item);
                if(assets != null)
                {
                    AssetsData assetsdata = assets.data;
                    if(assetsdata != null)
                    {
                        string nickname = rank_bll.GetNickName(item);                 
                    <tr>
                        <td><span title="@(nickname)">@(StringHelper.StringSubstrLen(nickname,10))</span></td>
                        <td><strong>@(assetsdata.rankIndex)</strong></td>
                        <td><span class="@(StringHelper.FormatQQColor(assetsdata.totalrate))">@(StringHelper.FormatDecimal(assetsdata.totalrate))%</span></td>                  
                        <td><a hidefocus="true" onclick="DelMyEmRss('@(item)');" href="javascript:;" class="btn2">取消</a></td>
                    </tr>
                    }
                }
            }
        }else
        {
            <tr>
                <td colspan="5" style="text-align:center">请先添加订阅</td>               
            </tr>
        }
    }
  
</table>